package com.party.core.dao.read.order;

import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.order.RefundPlan;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author: huangzequn
 * @Date: 2019/5/16 10:37
 */
@Repository
public interface RefundPlanReadDao extends BaseReadDao<RefundPlan> {

    /**
     * @Author hzq
     * @Description //根据projectId找到退款计划
     * @Date 11:15 2019/5/16
     * @param goalId
     * @return
     **/
    RefundPlan getByGoalId(String goalId);

    /**
     * @Author hzq
     * @Description //获取所有符合条件的退款计划
     * @Date 11:15 2019/5/16
     * @param refundPlan
     * @return
     **/
    List<RefundPlan> list(@Param("refundPlan") RefundPlan refundPlan);

    /**
     * @Author hzq
     * @Description //退款计划列表查询
     * @Date 16:40 2019/6/5
     * @param refundPlan
     * @param page
     * @param params
     * @return
     **/
    List<RefundPlan> webListPage(@Param("refundPlan")RefundPlan refundPlan, Page page, @Param("params") Map<String, Object> params);
}
